<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
	<script type="text/javascript" src="<neos:url/>js/scripts.js"></script>
		<meta http-equiv="Content-Type" content="text/html, charset=utf-8" />
		<title>Semana SI</title>
		<link href="<neos:url/>css/site.css" rel="stylesheet" type="text/css" />
	</head>
	<?php
		if(isset($_SESSION['idUsuario'])){
			$sql = "SELECT p.nome FROM pessoas p join usuarios  u on (p.id = u.pessoa_id ) WHERE u.id = '". $_SESSION['idUsuario']."'";
			$query1  = _db($sql);
			if($query1){
				$nome = explode(" ",$query1[0]->nome);
				echo "<h6> Bem vindo   ".$nome[0]."</h6>";
			}
		}
	?>
	<body >
    	<h1>5ª Semana de Sistemas de informação</h1>
	</body>
</html>
